package com.tanhua.server;

import com.alibaba.dubbo.config.annotation.Reference;
import com.tanhua.server.service.TodayBestService;
import com.tanhua.server.vo.PageResult;
import com.tanhua.server.vo.RecommendUserQueryParam;
import com.tanhua.server.vo.TodayBest;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author Au
 * @DATE 2020/11/16 23:07
 **/
@SpringBootTest
public class server {

    @Reference
    private TodayBestService todayBestService;

    @Test
    public void testQueryTodayBest() {
        String token = "eyJhbGciOiJIUzI1NiJ9.eyJtb2JpbGUiOiIxNTU0NTE3NTI1NiIsImlkIjoxMX0.wonnEdAsXZE38XhPB-0wVmXIgONixup8APAjZBcUUC8";
        TodayBest todayBest = todayBestService.queryTodayBest();
        System.out.println("todayBest = " + todayBest);
    }

    @Test
    public void testQueryTodayBestList() {
        String token = "eyJhbGciOiJIUzI1NiJ9.eyJtb2JpbGUiOiIxNTU0NTE3NTI1NiIsImlkIjoxMX0.wonnEdAsXZE38XhPB-0wVmXIgONixup8APAjZBcUUC8";
        PageResult pageResult = todayBestService.queryRecommendUserList(new RecommendUserQueryParam());
        System.out.println("pageResult = " + pageResult);
    }
}
